package com.erp.erp_servers.ProductCatalog;

import com.erp.erp_entitys.ProductCatalog.ProductCatalogEntity;
import com.erp.erp_entitys.ProductCatalog.ProductCatalogExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IProductCatalogService {
    long countByExample(ProductCatalogExample example);

    int deleteByExample(ProductCatalogExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(ProductCatalogEntity record);

    int insertSelective(ProductCatalogEntity record);

    List<ProductCatalogEntity> selectByExample(ProductCatalogExample example);

    ProductCatalogEntity selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") ProductCatalogEntity record, @Param("example") ProductCatalogExample example);

    int updateByExample(@Param("record") ProductCatalogEntity record, @Param("example") ProductCatalogExample example);

    int updateByPrimaryKeySelective(ProductCatalogEntity record);

    int updateByPrimaryKey(ProductCatalogEntity record);

    List<String> queryIdByCode(String code);

    ProductCatalogEntity selectByPrimary(String code);
}
